#define _CRT_SECURE_NO_WARNINGS

#include "Heap.h"

void test1()
{
	int arr[] = { 15,49,37,25,28,34,65,18,27,19 };
	
	Heap* heap = HeapCreate(arr, sizeof(arr) / sizeof(arr[0]));
	PrintHeap(heap);
	HeapPush(heap, 10);
	HeapPush(heap, 11);
	HeapPush(heap, 40);
	PrintHeap(heap);
	HeapPop(heap);
	HeapPop(heap);
	HeapPop(heap);
	HeapPop(heap);
	PrintHeap(heap);
	
}
void test2()
{
	int arr[] = { 5,3,10,8,6,2,1,4,7, 9};
	int sz = sizeof(arr) / sizeof(arr[0]);
	int i = 0;
	for (i = 0; i < sz; ++i)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");
	
	
	i = 0;
	for (i = 0; i < sz; ++i)
	{
		printf("%d ", arr[i]);
	}

}
int main()
{
	test1();


	return 0;
}